Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Fresh install Ubuntu VM, lvm 100% usage but the disk is 100G



Threaded Mode | Print  

 Fresh install Ubuntu VM, lvm 100% usage but the disk is 100G, LVM use 100% fresh install (2 Replies, Read 2099 times)
lost_avocado
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hi
Strange problem here, maybe some of you have a solution?

Enviroment:
Fresh install of proxmox, storage iSCSI synlologi in proxmox.

Deployment of Ubuntu VM using one of the available templates, allocated disk size 100GB.

When using Ubuntu template the default behavior is that the OS sets up the disk as an LVM group, leading to the guest os utilizing what I guess it use to install the os and start up, in this case about 3,7 GB.

Code
root@ubuntu:~# df -lh
Filesystem      Size  Used Avail Use% Mounted on
tmpfs          796M  9.0M  787M  2% /run
/dev/sda1      3.7G  3.7G    0 100% /
tmpfs          3.9G    0  3.9G  0% /dev/shm
tmpfs          5.0M    0  5.0M  0% /run/lock
tmpfs          796M  4.0K  796M  1% /run/user/0


When deploying ubuntu from ISO and then manually remove the tick for setting up the disk as an LVM group, then the end result is ok and the guest os utlilizing the whole disk.

Code
root@ubuntu:~# lsblk
NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0  62M  1 loop /snap/core20/1587
loop2    7:2    0 44.7M  1 loop /snap/snapd/15534
loop3    7:3    0  47M  1 loop /snap/snapd/16292
loop4    7:4    0 79.9M  1 loop /snap/lxd/22923
loop5    7:5    0 63.5M  1 loop /snap/core20/2015
sda      8:0    0  100G  0 disk
└─sda1  8:1    0  3.8G  0 part /


How can this be fixed? Is there a setting somewhere that I'm missing here?

Kind regards
Avocado
IP: --   

Fresh install Ubuntu VM, lvm 100% usage but the disk is 100G
lost_avocado
Group: Member
Post Group: Newbie
Posts: 2
Status:
Ok, after some diigging I've found that this is the default behaviour of the ubuntu installer(I also see this i almalinux).

Proxmox will create the disk but the installer wont use all the space unless I manually tell it to do so during the installation. This can be done by untick the instruction to create LVM group during the install.

My question then, in the templates, where can this value be altered?
IP: --   

Fresh install Ubuntu VM, lvm 100% usage but the disk is 100G
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 742
Status:
Hi,


What is the version of sfdisk binary ?
You can check it using :

sfdisk -v

If its higher than 2.23.2, then you can use the following steps :

mv /sbin/sfdisk /sbin/sfdisk_new

wget -O /sbin/sfdisk http://files.virtualizor.com/utility/sfdisk

chmod 755 /sbin/sfdisk


And then try to create new vps.


-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 11:02 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.025